package com.bite.ThreadPool;

public class Test {
    public static void main(String[] args) throws InterruptedException {
        MyThreadPool myThreadPool = new MyThreadPool(5);
        for (int i = 0; i < 30; i++) {
            myThreadPool.sumbit(new Runnable() {
                @Override
                public void run() {
                    System.out.println(Thread.currentThread().getId() + " " + Thread.currentThread().getName());
                }
            });
        }
    }
}
